gamerule commandBlockOutput false
gamerule commandBlockOutput true
gamerule sendCommandFeedback false
gamerule sendCommandFeedback true

the Debug Message

tellraw @p {"text":"欢迎，创造者 "}
tellraw @p {"text":"欢迎来到马丢的命令方块实验室，这里是博物馆路 "}
tellraw @p {"text":"这里陈列着许许多多的命令演示，方便新手快速学习 "}
tellraw @p {"text":"现在你看到的是最简单的红石控制脉冲命令方块，红石可以作为所有命令方块的开关，激活红石会激活脉冲型命令方块一次 "}

tellraw @p {"text":"连锁型命令方块会根据箭头的方向顺序执行，"}
tellraw @p {"text":"红石依旧可以当做开关"}
tellraw @p {"text":"满足条件可以起到if的效果，如果上一个命令成功执行才执行下一个；"}
tellraw @p {"text":"还可以转弯"}

tellraw @p {"text":"循环命令方块会不断循环，依然可以受到红石控制 "}

tellraw @p {"text":"好了，命令方块基础知识结束，接下来是命令博物馆，就没有那么多引导了","color":"green"}

execute at @a[distance=3] run title @s 2 1 2 
execute if entity @a[distance=..3] 
execute unless entity @a[distance=..3] at @s run setblock ~ ~ ~ air

give @p 
tellraw @p [{"text":"紧急","color":"red"},{"text":"请注意安全","color":"white"}]

tick freeze
tellraw @a {"text":"Hello world!","color":"green","bold":true,"italic":false,"underlined":true,"strikethrough":false,"obfuscated":false}

fill ^150 ^-4 ^1 ^-150 ^-1 ^50 minecraft:air 
execute at @a[tag=broke] run fill ^150 ^-4 ^1 ^-150 ^-1 ^50 minecraft:air
execute at @a[tag=b] run fill ~1 ~-4 ~-50 ~50 ~-1 ~50 minecraft:air
fill ^0 ^-1 ^1 ^-1 ^-1 ^100 minecraft:dark_oak_planks
fill ^0 ^-1 ^1 ^-1 ^-1 ^100 minecraft:barrier

gamemode adventure @p[distance=..5]
gamemode creative @p
tag @p[distance=..6] add s

tag @p[distance=10..20] remove s
tellraw @p [{"text":"被卸下神力的感觉如何，创造者？","color":"dark_red"}]
tellraw @p [{"text":"风暴","color":"dark_red"}]
playsound disco music @a[distance=..30]

scoreboard objectives add pos1 dummy
scoreboard objectives remove pos1
data get entity @s Pos[0]
execute store result score pos1 @p run data get entity @s Pos[0]

#计时器
scoreboard objectives add timer dummy
scoreboard players set @p timer 0
scoreboard players operation @p timer = @p timer + 1

execute if score @p timer matches 10 run tellraw @p [{"text":"你好","color":"dark_red"}]
give @s minecraft:zombie_spawn_egg[entity_data={Silent:1b,NoAI:0b,PersistenceRequired:0b,Invulnerable:1b,NoGravity:1b,CustomName:'{"text":"平静的人","color":"dark_red"}',CustomNameVisible:1b}]
execute if score @p timer matches 10 run tellraw @p [{"text":"你好","color":"dark_red"}]
playsound z voice @a[distance=..20]

#ExplosionPower ExplosionRadius
execute at @p run summon minecraft:creeper ~ ~ ~ {ExplosionRadius:10,powered:1b}
#HandDropChances ArmorDropChances
summon minecraft:zombie ~ ~ ~ {Attributes:[{Name:"max_health",Base:100f}],Health:100f}
summon minecraft:bat ~ ~ ~ {Passengers:[{id:"minecraft:skeleton",ArmorItems:[{},{},{},{id:"minecraft:leather_helmet",Count:1b}],HandItems:[{id:"minecraft:stick",Count:1b}]}]}
#Passengers Attributes	


#惊变部分timer
scoreboard objectives add timer dummy
scoreboard players set timer 0
scoreboard players operation T timer = T timer + 1
scoreboard players set #1 timer 1
scoreboard objectives setdisplay sidebar 
#bossar
bossbar add the_time_is '{text:"时间",color:"green","score": {"name": "T","objective": "timer"}'
execute store result bossbar the_time_is run data get score T timer
#中间实体
tag @e[type=boat] add time_entity
bossbar set the_time_is players @e[tag=time_entity,limit=1] timer

#